/**
* 作者: clz
* 日期: 2025-05-16 03:54:16
* 备注: 联盟远征成员伤害记录
*/
package com.motu.monstercity.server.game.userdata;

import com.motu.monstercity.protocol.Common;
import com.motu.monstercity.server.game.logic.GameUser;

public class UnionBossUserRecord extends UnionBossUserRecordModel {
	public UnionBossUserRecord() {
		super();
	}

	public UnionBossUserRecord(long unionId,int stageId,long userId,long filghtHp) {
		putUnionStageId(unionId + "-" + stageId);
		putUserId(userId);
		putHp(filghtHp);
	}

		public Common.PBRankMember.Builder takePbRankInfoBuilder() {
			Common.PBRankMember.Builder rankMember = Common.PBRankMember.newBuilder();
			rankMember.setUserId(getId());
			rankMember.setScore(getHp());
			UserShow userShow = GameUser.getUserShow(getUserId());
			rankMember.setUserShow(userShow.takeInitBuilder());

		return rankMember;
	}
}
